<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<img src="../定时器作业/图片切换/1.jpg" id="jp1">
		<br>
		<button type="button" onclick="changes(event);">开始</button>
	</body>
	<script type="text/javascript">
	var i=1;
	function changes(event)
	{
	var tmp=setTimeout(function cag(){
			var imgid=document.getElementById('jp1');
			var k=aa();
			var str='../定时器作业/图片切换/'+k+'.jpg'
			imgid.scr=str;
			
		},100)
	};

	function aa()
	{
		i++;
		if(i>9)
		{
			i=1;
		}
		return i;
	}

	</script>
</html>
